import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.ArrayList;
import java.util.Scanner;

public class 第五题 {
    public static ArrayList<String> list = new ArrayList<>();

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[][] arr = new char[30][50];
        for (int i = 0; i < 30; i++) {
            String str = sc.nextLine();
            arr[i] = str.toCharArray();
        }

        ArrayList<Character> charList = new ArrayList<>();
        // arr[0][0] = '2';
        dfs(arr, 0, 0, charList);

//        for (int i = 0; i < 30; i++) {
//            for (int j = 0; j < 50; j++) {
//                System.out.print(arr[i][j] + " ");
//            }
//            System.out.println();
//        }
    }

    public static int[] getDirection(int i) {
        int[][] directionArr = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
        return directionArr[i];
    }

    public static char getChar(int i) {
        char[] charArr = {'D', 'U', 'R', 'L'};
        return charArr[i];
    }

    private static boolean check(char[][] arr, int x, int y) {
        boolean canGO = false;
        for (int i = 0; i < 4; i++) {
            int[] direction = getDirection(i);
            try {
                if (arr[x + direction[0]][y + direction[1]] == '0') {
                    canGO = true;
                    break;
                }
            } catch (Exception e) {
                System.out.print("");
            }
        }
        return canGO;
    }

    private static void dfs(char[][] arr, int x, int y, ArrayList<Character> charList) {
        if (!check(arr, x, y)) {
            return;
        }

        if (x == 29 && y == 49) {
            System.out.println(charList);
            return;
        }

        for (int i = 0; i < 4; i++) {
            int[] direction = getDirection(i);
            if (x + direction[0] >= 0 || x + direction[0] < 30 || y + direction[1] >= 0 || y + direction[1] < 50) {
                if (arr[x + direction[0]][y + direction[1]] == '0') {

                    charList.add(getChar(i));
                    // arr[x + direction[0]][y + direction[1]] = '2'; //走过了 没有回头路
                    arr[x][y] = '@';
                    //System.out.println(charList);
                    for (int o = 0; o < 30; o++) {
                        for (int j = 0; j < 50; j++) {
                            System.out.print(arr[o][j]);
                        }
                        System.out.println();
                    }
                    System.out.println("---------------------------");
                    dfs(arr, x + direction[0], y + direction[1], charList);

                    charList.remove(charList.size() - 1); //回溯
                    arr[x][y] = '0'; //回溯
                }
            }
        }
    }
}
